package org.example.tip.repository;

import org.apache.ibatis.annotations.Param;
import org.example.tip.entity.Tip;
import org.example.tip.entity.vo.TipVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TipRepository {

    List<Tip> selectAllTip();

   public void addtip(Tip t);
    public void addTipText(Tip t);

   public TipVO gettip(Integer id);
    public void incrementViews(Integer id);//更新浏览量
    public List<Integer> getMyGoodTipId(String UserEmail);
    public List<TipVO> getMyTip(String UserEmail);
    public void incrementGoods(Integer id);//更新点赞量
    public void userGoods(@Param("UserEmail")String UserEmail, @Param("id")Integer id);
    public void cancelUserGoods(@Param("UserEmail")String UserEmail, @Param("id")Integer id);
    public void cancelGoods(Integer id);
    public List<TipVO> getMyGoodsTip(String UserEmail);//获取我的点赞列表

    List<TipVO> searchTip(String all);

}
